/*
 * File Name : command.h
 * Auther : dream.liuguobiao
 * Create Date : 2010-5-15
 * Last Edit : 2010-5-16
 */

#ifndef COMMAND_H
#define COMMAND_H

#include "shell_environment.h"

class command
{
private:
  shell_environment *my_environment;
  std::string parameters;
public:
  command( std::string *new_parameters):my_environment(shell_environment::get_shell_environment() ),parameters( *new_parameters){}
  shell_environment *get_shell_environment(){ return my_environment;}
  std::string *get_parameters(){ return &parameters; }
  virtual ~command(){}
  virtual int run_command() = 0 ;

};

#endif
